#include <iostream>
#include <signal.h>
using namespace std;
void sig_handle(int sig)
{
    cout<<"接收到信号"<<sig<<endl;
}
int main()
{
    signal(SIGINT,sig_handle);
    raise(SIGINT);
    return 0;
}